$OpenBSD: patch-kinit_kinit_cpp,v 1.1 2013/04/24 19:45:29 zhuk Exp $
Additional search path for libexec items.
Probably should be fixed to use actual libexec path
instead of trying popular ones.
--- kinit/kinit.cpp.orig	Wed Nov 14 19:58:29 2012
+++ kinit/kinit.cpp	Sun Dec 16 14:02:48 2012
@@ -500,6 +500,9 @@ static pid_t launch(int argc, const char *_name, const
             if( lib.contains( QLatin1String( "/lib" KDELIBSUFF "/kde4/libexec/" ))) {
                 libpath = QString( lib ).replace( QLatin1String( "/lib" KDELIBSUFF "/kde4/libexec/" ),
                     QLatin1String("/lib" KDELIBSUFF "/libkdeinit4_")) + QLatin1String(".so");
+            } else if( lib.contains( QLatin1String( "/libexec/" ))) {
+                libpath = QString( lib ).replace( QLatin1String( "/libexec/" ),
+                    QLatin1String("/lib" KDELIBSUFF "/libkdeinit4_")) + QLatin1String(".so");
             } else if( lib.contains( QLatin1String( "/bin/" ))) {
                 libpath = QString( lib ).replace( QLatin1String( "/bin/" ),
                     QLatin1String("/lib" KDELIBSUFF "/libkdeinit4_")) + QLatin1String(".so");
